 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace compositecontrol
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }



        public delegate void Sound(int decibels);
        public event Sound Bang; 
  
        private void Form1_Load(object sender, EventArgs e)
        {
           
        }
        
        //Không kiểu trả về
        public void DisplayString1(string aString)
        {
            MessageBox.Show(aString);
        }
         private void button1_Click_1(object sender, EventArgs e)
        {
            DisplayString1("Hello");
            /////???//
        } 
            

        //có kiểu trả về
        public string DisplayString(string aString, string bString)
        {
            return aString + bString;
        }

        private void button2_Click(object sender, EventArgs e)
        {
           
            MessageBox.Show(DisplayString("A", "B"));
        }

        //private void exposing_the_Properties_of_Constituent_Controls1_Load(object sender, EventArgs e)
        //{

        //}

       
        
        
        
        
    }
}
